import request from '@/utils/request'

export function getAll() {

  return request({
    url: `/purchase/getAll`,
    method: 'get'
  })
}
export function modifyif(data) {

  return request({
    url: `/purchase/upsert`,
    method: 'post',
    data: data
  })
}
export function check(data) {

  return request({
    url: `/purchase/check?pcID=`+data.pcID,
    method: 'post',
  })
}
export function getopt() {

  return request({
    url: `/product/getAll`,
    method: 'get',
  })
}
export function getkesu() {

  return request({
    url: `/kesu/getAll`,
    method: 'get',
  })
}
export function removebyid(data) {

  return request({
    url: `/purchase/deleteById?id=`+data.pcID,
    method: 'delete',
  })
}